package com.nimitz.task.mapper;

import com.nimitz.common.core.domain.entity.SysUser;
import com.nimitz.task.domain.Task;
import com.nimitz.task.domain.TaskResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskMapper {
    List<Task> selectAll(@Param(value = "auditorId") Long auditorId, @Param(value = "state") String state);

    void updateTask(Task task);

    void addTask(Task task);

    TaskResult selectById(Long id);

    void deleteById(Long id);

    int countAll();

    int countCompleted();

    void updateAuditor(Task task);

    List<SysUser> selectByRoleId();
}
